Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added cell and row context flyouts #85

Merged
merged 2 commits into from
Dec 22, 2024
Merged

added cell and row context flyouts #85

merged 2 commits into from
Dec 22, 2024

Conversation

w-ahmad
Copy link
Owner

@w-ahmad w-ahmad commented Dec 16, 2024

Closses #38

Description

This PR enhances the TableView by adding support for displaying context flyouts for rows and cells.

New Properties

  • RowContextFlyout Set's context flyout for TableView rows.
  • CellContextFlyout Set's context flyout for TablevIew cells.

New Events

  • RowContextFlyoutOpening fired before showing context flyout.
  • CellContextFlyoutOpening fired before showing context flyout.

New types

  • TableViewRowContextFlyoutEventArgs
public partial class TableViewRowContextFlyoutEventArgs : HandledEventArgs
{
    public TableViewRowContextFlyoutEventArgs(int index, TableViewRow row, object item, FlyoutBase flyout)
    {
        Index = index;
        Row = row;
        Item = item;
        Flyout = flyout;
    }

    public int Index { get; }
    public TableViewRow Row { get; }
    public object Item { get; }
    public FlyoutBase Flyout { get; }
}
  • TableViewCellContextFlyoutEventArgs
public partial class TableViewCellContextFlyoutEventArgs : HandledEventArgs
{
    public TableViewCellContextFlyoutEventArgs(TableViewCellSlot slot, TableViewCell cell, object item, FlyoutBase flyout)
    {
        Slot = slot;
        Cell = cell;
        Item = item;
        Flyout = flyout;
    }

    public TableViewCellSlot Slot { get; }
    public TableViewCell Cell { get; }
    public object Item { get; }
    public FlyoutBase Flyout { get; }
}

@w-ahmad w-ahmad linked an issue Dec 16, 2024 that may be closed by this pull request
@w-ahmad w-ahmad merged commit 16df2ae into main Dec 22, 2024
1 check passed
@w-ahmad w-ahmad deleted the feature/ContextFlyouts branch December 27, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add RightMouseClick in cell
1 participant